package de.tum.wi.som.rcpsp.util;

public class Assert {
	
	/**
	 * Checks if objectToCheck is null. If so a {@link IllegalArgumentException} is thrown.
	 * @param objectToCheck
	 * @param message
	 * @throws IllegalArgumentException
	 */
	public static void checkNotNull(Object objectToCheck, String message){
		if(objectToCheck==null){
			throw new IllegalArgumentException(message);
		}
	}

}
